package com.vito.dcs;

import java.util.HashMap;
import java.util.Map;

import com.google.common.collect.Maps;

/***
 * 常量类
 * @author hug19
 *
 */
public class DcsConstants {

	public static final Map<String,String> CONSTRUC_TYPE = Maps.newHashMap();  //工程车辆类型
	
	public static final Map<String,String> CONSTRUC_TYPE_REV = new HashMap<String, String>();
	
	static {
		
		CONSTRUC_TYPE.put("TPJ","01");
		CONSTRUC_TYPE.put("JLYLJ","02");
		CONSTRUC_TYPE.put("GLYLJ","03");
		
		CONSTRUC_TYPE_REV.put("01", "TPJ");
		CONSTRUC_TYPE_REV.put("02", "JLYLJ");
		CONSTRUC_TYPE_REV.put("03", "GLYLJ");
		
		
	}
	
	public static final int CONSTRUC_GPS_CODE_INVALID_DATA = 602;  //非法数据
	
	public static final int CONSTRUC_GPS_CODE_UNKNOW_ERROR = 999;  //未知错误
	
	public static final int CONSTRUC_GPS_CODE_UNREGISTER = 601;  //未注册
	
	public static final int CONSTRUC_GPS_CODE_SUCCESS = 0;  //成功
	
	public static final int CONSTRUC_GPS_CODE_SYNC = 1;  //需要同步
	
	public static final String CONSTRUC_GPS_STATE_NO_WORK = "0";  //未工作
	
	public static final String CONSTRUC_GPS_STATE_WORKING = "1";  //工作中
	
	public static final String CONSTRUC_GPS_STATE_FAULT = "2";  //设备故障
	
}
